package com.example.student1.dao;

import com.example.student1.domain.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;
public interface StudentRepository extends JpaRepository<Student,Long> {

    public List<Student>findByNameLike(String name);
    public Page<Student> findByName(String name, Pageable pageable);
    /*public List<Student> findByNameAndPassword(String name,String password);*/
}
